2015年12月20日 — After looking through the source, this might interest you. If you plan on using the each attribute, you'll have to define some sort of an ...
Inline tag definitions(in document body) must be properly indented, with all custom tags equally indented at the lowest indent level, mixing of tabs and spaces ...
A Riot component is a combination of layout (HTML) and logic (JavaScript). Here are the basic rules: Each .riot file can contain the logic for only a single ...
Each tag/component will contain the HTML , style and js code specific to that component. In that way, you can wrap up the JS and style specific to each HTML tag ...
Component object. Each Riot.js component is created as a lightweight object. The object that you export via export default will have the following properties:.
2015年3月28日 — that does not really answers his question because he really loops through an array of objects, and he want to get the index of the array - never ...